package com.children.growth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.children.growth.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户 Mapper 接口
 * 
 * @author children
 * @since 1.0.0
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    int checkUsernameExists(@Param("username") String username);

    int checkEmailExists(@Param("email") String email);

    int checkPhoneExists(@Param("phone") String phone);

    User selectByUsername(@Param("username") String username);
} 